<? global $cat1,$cat2, $lg; 
	//echo $act;
?>

<div class="content_submenu">
  <div>
    <div class="header-title">
      <h1>
        <?=$title_bar;?>
      </h1>
    </div>
    <div class="submenu_detail">
      <ul>
        <? if($submenus){ ?>
        <?		
                    global $lg, $prefix_url, $FullUrl, $num_of_result;
                        $n = count($submenus);
                ?>
        <?
			for($i=0;$i<$n; $i++){
				$item = $submenus[$i];
				$link = $FullUrl . $prefix_url . $cat1["unique_key_$lg"] . "/" . $item["unique_key_$lg"] . "/";
				$name = $item['unique_key_'.$lg];
				
				$rs = $item['img'];
				
				$url_img = GetImage($rs);
				$w = 164;
				$h = 164;
				$sizes = fixSize($url_img , $w, $h);
				if(!empty($name) && $name != ''){								
		?>
        <li> <span> <a href="<?=$link;?>"><img src="<?=GetPHPThumb($url_img, 164, 164);?>" alt="<?=$item["unique_key_".$lg];?>" title="<?=$item["unique_key_".$lg];?>" style="margin-top:<? echo ImageCenter($sizes['height'], $h)?>px;margin-left:<?=ImageCenterHorizontal($sizes['width'], 164)?>px"></a> </span>
          <div class="list-title">
            <h3><a href="<?=$link;?>">
              <?=$item['name_'.$lg]?$item['name_'.$lg]:NO_NEWS?>
              </a></h3>
            <!--<p class="excerpt"><?=!empty($cat1["desc_".$_SESSION['lg']])?$cat1["desc_".$_SESSION['lg']]:''?></p>--> 
          </div>
        </li>
        <?
	  	}}
	  ?>
        <? }else{
			print('<div class="updating">'.NO_NEWS.'</div>');
		} ?>
      </ul>
      <div class="clear"></div>
    </div>
  </div>
  <!-- #content --> 
</div>
